import Vue from 'vue'
import {
  Tabbar,
  TabbarItem,
  NavBar,
  Swipe,
  SwipeItem,
  Grid,
  GridItem,
  Card,
  Toast,
  Button,
  Tab, Tabs,
  Lazyload,
  Panel,
  Stepper
} from 'vant'

// 注册时可以配置额外的选项
Vue.use(Lazyload, {
  loading: 'https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1596601999300&di=c45cac6846fd8afb23428fb0627b4c57&imgtype=0&src=http%3A%2F%2Fimg1.imgtn.bdimg.com%2Fit%2Fu%3D966724446%2C3729827248%26fm%3D214%26gp%3D0.jpg',
  lazyComponent: true
})

Vue
  .use(NavBar)
  .use(Tabbar).use(TabbarItem)
  .use(Swipe).use(SwipeItem)
  .use(Grid).use(GridItem)
  .use(Card)
  .use(Button)
  .use(Tab)
  .use(Tabs)
  .use(Panel)
  .use(Stepper)
Vue.prototype.$Toast = Toast
